﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using LINQPad.OpenAccess.Infrastructure;
using LINQPad.OpenAccess.Services;
using LINQPad.OpenAccess.Settings;
using LINQPad.OpenAccess.UI.View;
using LINQPad.OpenAccess.UI.ViewModel;
using LINQPad.Extensibility.DataContext;
using LINQPad.OpenAccess.Tests.UIApp.Mocks;
using Moq;

namespace LINQPad.OpenAccess.Tests.UIApp
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {



        protected override void OnStartup( StartupEventArgs e )
        {
            var service = ServiceLocator.Current.Get<IDataContextUserInteractionService>( );

            var cxInfo = new MockConnectionInfo( );
            var settings = new DriverSettings( );

            var result = service.EditConfiguration( cxInfo, settings );

            MessageBox.Show( String.Format( "Result: {0}", result ) );
            base.OnStartup( e );
        }
    }
}
